package com.study.spmongodb.book.wwj.char02;

import java.util.stream.IntStream;

/**
 * @author MI
 * @version 1.0
 * @date 2020/11/23 22:37
 */
public class ThreadName {
    public static void main(String[] args) {
        IntStream.range(0, 5).boxed().map(i -> new Thread(
                () -> System.out.println(Thread.currentThread().getName())
        )).forEach(Thread::start);
    }
}
